package com.dyw.consumer.controller;

import com.example.dubboapi.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Devil
 * @create 2022-03-04 21:39
 */
@RestController
@RequestMapping("test")
public class ConsumerController {
    @DubboReference
    UserService userService;

    @GetMapping
    public void doTest() {
        System.out.println(userService.selectUserById(2));
    }
}
